const memberAdminRouter = require('./admin/member_routers');
const dictionaryAdminRouter = require('./admin/dictionary_admin_router');
const articleAdminRouter = require('./admin/article_admin_routers');
const listeratureAdminRouter = require('./admin/literature_admin_routers');
const commentAdminRouter = require('./admin/comment_admin_routers');
const signUpAdminRouter = require('./admin/signUp_admin_routers');
const sortClickLogAdminRouter = require('./admin/sortClickLog_admin_routers');
const sortSubscribeLogAdminRouter = require('./admin/sortSubscribeLog_admin_routers');
const shareLogAdminRouter = require('./admin/shareLog_admin_routers');
const clickLogAdminRouter = require('./admin/clickLog_admin_routers');

//签到会议
const qdMeetAdminRouter = require('./admin/qdMeet_admin_routers');

//签到客户
const memberMeetAdminRouter = require('./admin/memberMeet_routers');

//后台问卷
const qdWjAdminRouter = require('./admin/qdWj_routers');

//问卷问题
const qdWjQuestionAdminRouter = require('./admin/qdWjQuestion_routers');

//问题的选项
const qdWjCheckAdminRouter = require('./admin/qdWjCheck_routers');


//二维码表
const qdQrCodeAdminRouter = require('./admin/qdQrCode_routers');

//推送图文表
const qdArticleAdminRouter = require('./admin/qdArticle_routers');

//验证表
const jwytAuthAdminRouter = require('./admin/jwytAuth_routers');

//评分会议表
const pfMeetAdminRouter = require('./admin/pfMeet_routers');

//评分参会人员表
const pfMemberAdminRouter = require('./admin/pfMember_routers');

//评分分类表
const pfQuestionAdminRouter = require('./admin/pfQuestion_routers');

const pfCheckAdminRouter = require('./admin/pfCheck_routers');

const pfLogAdminRouter = require('./admin/pfLog_routers');


const memberWxRouter = require('./wx/member_routers');
const articleWxRouter = require('./wx/article_routers');
const bingliWxRouter = require('./wx/bingli_routers');
const listeratureRouter = require('./wx/literature_routers');
const literaturesAppLogRouter = require('./wx/literatureApplicationLog_routers');
const commentWxRouter = require('./wx/comment_routers');
const clickLogWxRouter = require('./wx/clickLog_routers');
const sortClickLogWxRouter = require('./wx/sortClickLog_routers');
const subcribesWxRouter = require('./wx/subscribe_routers');
const integralRecordRouter = require('./wx/integralRecord_routers');
const searchLogRouter = require('./wx/searchLog_routers');

const jwytAuthRouter = require('./wx/jwytAuth_routers');



//直播
const liveWxRouter = require('./wx/live_routers');

//报名记录
const signUpRouter = require('./wx/signupLog_routers');

//视频
const videoRouter = require('./wx/video_routers');

//数字字典
const dictionaryRouter = require('./wx/dictionary_routers');

//签到问卷
const qdWjRouter = require('./wx/qdWj_routers');

//签到问卷推送图文
const qdWjArticleRouter = require('./wx/qdWjArticle_routers');

//扫二维码得到二维码信息
const qdQrRouter = require('./wx/qdQr_routers');

//回答问卷记录
const qdWjLogRouter = require('./wx/qdWjLog_routers');

const pfMeetRouter = require('./wx/pfMeet_routers');

const pfLogRouter = require('./wx/pfLog_routers');

const pfMemberRouter = require('./wx/pfMember_routers');

//后台
//直播
const liveAdminWxRouter = require('./admin/live_admin_routers');

//视频
const videoAdminWxRouter = require('./admin/video_admin_routers');

//病例
const blAdminWxRouter = require('./admin/bl_admin_routers');

const pfTotalScoreAdminRouter = require('./admin/pfTotalScore_routers');



const API_PATH_ADMIN = '/api/v2.0/admin/'
const API_PATH_WX = '/api/v2.0/wx/'
module.exports = function (app) {
    //后台  
    app.use(API_PATH_ADMIN + 'members', memberAdminRouter);

    //图文查询
    app.use(API_PATH_ADMIN + 'articles', articleAdminRouter);

    //评论查询
    app.use(API_PATH_ADMIN + 'comments', commentAdminRouter);

    //字典
    app.use(API_PATH_ADMIN + 'dictionarys', dictionaryAdminRouter);
    app.use(API_PATH_ADMIN + 'lives', liveAdminWxRouter);
    app.use(API_PATH_ADMIN + 'videos', videoAdminWxRouter);
    app.use(API_PATH_ADMIN + 'binglis', blAdminWxRouter);

    //文献查询
    app.use(API_PATH_ADMIN + 'literatures', listeratureAdminRouter);

    app.use(API_PATH_ADMIN + 'signUps', signUpAdminRouter);

    app.use(API_PATH_ADMIN + 'sortClickLogs', sortClickLogAdminRouter);

    app.use(API_PATH_ADMIN + 'sortSubscribeLogs', sortSubscribeLogAdminRouter);

    app.use(API_PATH_ADMIN + 'shareLogs', shareLogAdminRouter);

    app.use(API_PATH_ADMIN + 'clickLogs', clickLogAdminRouter);

    app.use(API_PATH_ADMIN + 'qdMeets', qdMeetAdminRouter);

    app.use(API_PATH_ADMIN + 'memberMeets', memberMeetAdminRouter);

    app.use(API_PATH_ADMIN + 'qdWjs', qdWjAdminRouter);

    app.use(API_PATH_ADMIN + 'qdWjQuestions', qdWjQuestionAdminRouter);

    app.use(API_PATH_ADMIN + 'qdWjChecks', qdWjCheckAdminRouter);

    app.use(API_PATH_ADMIN + 'qdQrs', qdQrCodeAdminRouter);

    app.use(API_PATH_ADMIN + 'qdArticles', qdArticleAdminRouter);

    app.use(API_PATH_ADMIN + 'jwytAuths', jwytAuthAdminRouter);

    app.use(API_PATH_ADMIN + 'pfMeets', pfMeetAdminRouter);

    app.use(API_PATH_ADMIN + 'pfMembers', pfMemberAdminRouter);

    app.use(API_PATH_ADMIN + 'pfQuestions', pfQuestionAdminRouter);

    app.use(API_PATH_ADMIN + 'pfChecks', pfCheckAdminRouter);

    app.use(API_PATH_ADMIN + 'pfLogs', pfLogAdminRouter);

    app.use(API_PATH_ADMIN + 'pfTotalScores', pfTotalScoreAdminRouter);
    //-----------------------------------------------------------------

    //微信
    app.use(API_PATH_WX + 'members', memberWxRouter);

    //图文查询
    app.use(API_PATH_WX + 'articles', articleWxRouter);

    //病例查询
    app.use(API_PATH_WX + 'binglis', bingliWxRouter);

    //文献查询
    app.use(API_PATH_WX + 'literatures', listeratureRouter);

    //文献申请
    app.use(API_PATH_WX + 'literatureAppLogs', literaturesAppLogRouter);

    //评论查询
    app.use(API_PATH_WX + 'comments', commentWxRouter);

    //点击（浏览量）
    app.use(API_PATH_WX + 'clickLogs', clickLogWxRouter);

    //模块点击（浏览量）
    app.use(API_PATH_WX + 'sortClickLogs', sortClickLogWxRouter);

    //订阅
    app.use(API_PATH_WX + 'subcribes', subcribesWxRouter);

    //直播
    app.use(API_PATH_WX + 'lives', liveWxRouter);

    //报名记录
    app.use(API_PATH_WX + 'signUps', signUpRouter);

    //视频
    app.use(API_PATH_WX + 'videos', videoRouter);

    //数字字典
    app.use(API_PATH_WX + 'dictionarys', dictionaryRouter);

    //积分记录
    app.use(API_PATH_WX + 'integralRecords', integralRecordRouter);

    //搜索记录
    app.use(API_PATH_WX + 'searchLogs', searchLogRouter);


    //会议签到
    app.use(API_PATH_WX + 'qdWj', qdWjRouter);
    app.use(API_PATH_WX + 'qdWjArticle', qdWjArticleRouter);
    app.use(API_PATH_WX + 'qdQr', qdQrRouter);
    app.use(API_PATH_WX + 'qdWjLog', qdWjLogRouter);

    //验证表
    app.use(API_PATH_WX + 'jwytAuth', jwytAuthRouter);

    app.use(API_PATH_WX + 'pfMeet', pfMeetRouter);

    app.use(API_PATH_WX + 'pfLog', pfLogRouter);

    app.use(API_PATH_WX + 'pfMember', pfMemberRouter);

};